# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=caja
pkgver=1.24.0
pkgrel=0
pkgdesc="The file manager for the MATE desktop"
url="https://github.com/mate-desktop/caja"
arch="all !s390x !mips !mips64" # mate-desktop is not available on s390x or mips
license="GPL-2.0-or-later AND LGPL-2.0-or-later"
depends="mate-common mate-desktop"
makedepends="$depends_dev intltool libtool dconf-dev gtk+3.0-dev libunique3-dev
	libsm-dev libnotify-dev mate-desktop-dev libxml2-dev gobject-introspection-dev
	gtk-doc"
checkdepends="xvfb-run"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/caja-$pkgver.tar.xz"
options="!check" # (caja:744): GLib-GIO-ERROR **: 12:12:20.291: Settings schema 'org.mate.caja.preferences' is not installed

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--sysconfdir=/etc \
		--disable-update-mimedb
	make
}

#check() {
#	xvfb-run make check
#}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="a68b23876cfa1171d5b1c75e4998c6b15f0ceebdc4fcaabb8d362e32e35b915b1a91a38648532ac8acc162dac50aeb4d07eff417ce2db7a8c50d68bd38a0b548  caja-1.24.0.tar.xz"
